<script setup>
import { onMounted } from 'vue';
import {useUserList} from '../../stores/storeUser'
import { storeToRefs } from 'pinia';

const store = useUserList()
const {list} = storeToRefs(store)

onMounted(() =>{
    store.getUserList()
})
</script>

<template>
    <div class="home">
        <h1>用户列表</h1>
        {{ list}}
    </div>
</template>

<style scoped lang="scss">
.home{
    width: 100%;
    height: 90%;
    background-color: white;
}
</style>